package test;

import org.junit.Test;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.Objects;

import static org.junit.Assert.assertNotNull;

/**
 * Copyright (C) 2024 - 2024 Jasonakeke， Inc. All Rights Reserved
 *
 * @Desc :
 * @Time : 2024/10/13 21:31
 * @Author : Code_By_Jasonakeke
 * @Email : 2284037977@qq.com
 * @Class : ImageTest
 * @IDE : IntelliJ IDEA
 */
public class ImageTest {

	@Test
	public void testBufferedImage(){
		try {
			BufferedImage image = ImageIO.read(Objects.requireNonNull(ImageTest.class.getClassLoader().getResourceAsStream("images/bulletD.gif")));
			assertNotNull(image);
		} catch (IOException e) {
			throw new RuntimeException(e);
		}
	}
}
